/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.openjawtech.xscraper.web.util;

import static com.opensymphony.xwork2.ActionContext.getContext;

/**
 *
 * @author Wenbo.Sun
 */
public class WebUtil {

    public static final String DEPARTURES = "departures";
    public static final String ARRIVALS = "arrivals";

    public static void addToSession(String key, Object value) {
        getContext().getSession().put(key, value);
    }

    public static Object getFromSession(String key) {
        return getContext().getSession().get(key);
    }
}
